package com.zym.field_method10;

public class Student {

    private int id;//编号

    private String name;//名字

    //3.构造器 构造方法
    //无参 有一个参数 有两个参数 构成方法重载
    //
    public Student(){

    }
    public Student(int id){

    }
    public Student(int id,String name){

    }

    public static void main(String[] args) {

        Student student = new Student();

        Student student2 = new Student(1);

        Student student3 = new Student(2,"李四");
    }

}
